package com.baizhi.service.impl;

import com.baizhi.entity.Section;
import com.baizhi.mapper.SectionMapper;
import com.baizhi.service.SectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SectionServiceImpl implements SectionService {
   @Autowired
    private  SectionMapper sectionMapper;
    @Override
    public void insert(Section s) {
        sectionMapper.insert(s);
    }

    @Override
    public void deleteById(Integer id) {
        sectionMapper.deleteById(id);
    }

    @Override
    public void update(Section s) {
        sectionMapper.update(s);
    }


    @Override
    public List<Section> selectAll() {
        return sectionMapper.selectAll();
    }

    @Override
    public Integer countRows() {
        return sectionMapper.countRows();
    }


}
